from django.urls import path
# from django.conf.urls import url
from . import views

urlpatterns = [
    path('', views.IndexView.as_view(), name='index'),
    path('artists', views.ArtistsView.as_view(), name='artists'),
    path('navbar', views.NavbarView.as_view(), name='navbar'),
    path('welcome', views.WelcomeView.as_view(), name='welcome'),

path('newartist', views.ArtistCreate.as_view(), name='artist_create'),
path('<artist_handle>', views.ArtistView.as_view(), name='artist'),
path('<artist_handle>/edit', views.ArtistUpdate.as_view(), name='artist_update'),
path('<artist_handle>/delete', views.ArtistDelete.as_view(), name='artist_delete'),

path('<artist_handle>/newalbum', views.AlbumCreate.as_view(), name='album_create'),
path('<artist_handle>/<album_slug>', views.AlbumView.as_view(), name='album'),
path('<artist_handle>/<album_slug>/addsong', views.SongAdd.as_view(), name='song_add'),
path('queue', views.QueueAdd.as_view(), name='queue_add')
]
